package cn.itsource.pethome.user.domain;

import cn.itsource.pethome.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class User extends BaseDomain {

    private String username;
    private String email;
    private String phone;

    //盐值
    private String salt;
    private String password;

    // 0 待激活 1激活
    private Integer state=1;
    private Integer age;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime = new Date();
    private String headImg;

}
